Singleton class that implements IScreen
Gets/sets whether the game should automatically adjust primary viewport and primary camera to the size of the room background each time the new room is loaded.
int Height
Gets the native height of the game screen in pixels, which matches game resolution you set in the Editor.
Viewport Viewport
Gets the primary room viewport. This is the default viewport that is created automatically at the start of the game and cannot be deleted.
ViewportCollection Viewports
Returns the Viewport instance by its index. There's always at least primary viewport at the index 0, more could be created in script using Viewport.Create.
int Width
Gets the native width of the game screen in pixels, which matches game resolution you set in the Editor.
Point RoomToScreenPoint(int rx, int ry)
Returns the point on screen corresponding to the given room coordinates if seen through the primary viewport.